package com.pn.serviceimpl;

import com.pn.mapper.PetTypeMapper;
import com.pn.service.PetTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PetTypeServiceImpl implements PetTypeService {

    @Autowired
    PetTypeMapper petTypeMapper;

    @Override
    public String getType(Integer ptid) {
        return petTypeMapper.selectByPrimaryKey(ptid).getPtname();
    }
}
